import { createSlice} from "@reduxjs/toolkit";
/**
 * 搜索栏全局状态
 */
export const searchStatusSlice = createSlice({
  name: "searchStatus",
  initialState: {showSearch:true},
  reducers: {
    setSearchStatus: (state, action) => {
      state.showSearch = action.payload;
    },
  },
});

// 修改状态
export const { setSearchStatus } = searchStatusSlice.actions;

export default searchStatusSlice.reducer;
